ENH: Add generate-lcov-html flag#258
ENH: Add generate-lcov-html flag#258ganesh-k13 wants to merge 1 commit intoscientific-python:mainfrom
generate-lcov-html flag#258Conversation
663daeb to
8500954
Compare
8500954 to
5880d5e
Compare
|
Adding one point here. I think its ninja which calls |
| from .util import get_commands, get_config | ||
| from .util import run as _run | ||
|
|
||
| LCOV_OUTPUT_FILE = Path("build", "meson-logs", "coveragereport") |
There was a problem hiding this comment.
This will depend on the build path the user specifies, so has to be set inside the build fn.
| default="html", | ||
| help=f"Format of the gcov report. Can be one of {', '.join(e.value for e in GcovReportFormat)}.", | ||
| ) | ||
| @click.option( |
There was a problem hiding this comment.
Instead of adding a new flag, what do you think of adding an html-lcov option to --gcov-format?
There was a problem hiding this comment.
Yeah, it makes sense to club it. It would need a bit of rework I have used the enum to denote the coverage format directly. Let me see how we can make it neater and more generic.
|
Thanks @ganesh-k13! |
@czgdp1807 , I searched quite a bit but I don't see any way to pass args to |
|
Hi. So you can check my uploaded coverage reports for SciPy - https://github.com/czgdp1807/scipy-lcov-genhtml-coverage-output. On
On
So, you can see, with I tried to search for an environment variable through which we can pass CLI options to |
|
Bit of an oversight from me, but seems like @czgdp1807 , regarding the external library coverage being included, can you see if you get the same results for NumPy in your machine. If not, I assume it's something to do with the way SciPy is built that is different that we need to deep dive on. |
|
I verified. https://github.com/czgdp1807/scipy-lcov-genhtml-coverage-output contains the latest reports. I think we are good. |



Changes
generate-lcov-htmlflag intestExample
Other error handling
Related
coverage,gcovandgenerate-lcov-htmlflags inspin testnumpy/numpy#24992spincommands for developer workflow numpy/numpy#24080testcommand #100--gcov-reportflag tospin test#159gcovflags for build #146ToDo